<!DOCTYPE html>
<html class="g-html">
<head>
	<meta charset="utf-8" />
	<meta name="renderer" content="webkit" />
	<meta name="keywords" content="Nui,Nui框架,Nui组件,axnfex,诺诺框架,诺诺前端,爱信诺框架,爱信诺前端" />
	<meta name="description" content="Nui框架是诺诺网前端团队根据自身业务的特点开发出来的模块化前端框架，提供了丰富的组件以适应不同业务需求进行快速开发。" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>Nui.js</title>
    <link rel="icon" type="image/vnd.microsoft.icon" href="/nui/assets/images/favicon.ico?v=f076652"/>
	<link rel="icon" type="image/x-icon" href="/nui/assets/images/favicon.ico?v=f076652"/>
	<link rel="shortcut icon" type="image/x-icon" href="/nui/assets/images/favicon.ico?v=f076652"/>
	<link rel="stylesheet" type="text/css" href="/nui/assets/style/base-min.css?v=0de6a3f"/>
    
</head>
<body class="g-body">
	<!-- header -->
	<div class="g-header f-clearfix">
	    <a class="m-logo f-fl" href="/nui/">
            <img src="/nui/assets/images/logo.png?v=a987f30" alt="Nui.js" class="f-fl" />
            <em class="f-fl e-ml10 f-fs24">Nui.js</em>
        </a>
        <ul class="m-nav f-fr f-fs16">
            
	
	
    <li class="f-fl">
        <a class="s-crt" href="/nui/pages/">教程</a>
    </li>
    <li class="f-fl">
        <a href="https://axnfex.github.io/2017/02/28/jobs/" target="_blank">加入我们</a>
    </li>
    <li class="f-fl">
        <a href="http://zjaisino.github.io/" target="_blank">前端规范</a>
    </li>
    <li class="f-fl">
        <a href="https://axnfex.github.io/" target="_blank">团队博客</a>
    </li>


        </ul>
	</div>
	<!-- /header -->

	<!-- content -->
	<div class="g-content">
    
	<div class="g-main f-fr">
		<div class="mainbox">
			<h1 class="e-pt20 e-pb20 f-fs28">介绍</h1>
			<h2 class="e-pt20 f-fs22 f-bb e-pb10" id="Nui是什么">Nui是什么</h2>
			<div class="e-mt15 f-lh22">
				<p>Nui是由诺诺网前端团队开发的基于jQuery模块化UI框架，主要由加载器、实用工具、模版引擎、代理事件、组件五个核心模块构成，使用时能够自动管理模块之间的依赖关系，让编码方式更加简单、自然、规范，使开发者更为专心的享受编码的乐趣！</p>
			</div>
			<h3 class="e-mt20 f-fs16"><b class="f-corange">#</b> 兼容性</h3>
			<div class="e-mt15 f-lh22">
				<p>Internet Explorer 6+ <b class="f-cgreen f-fs16">✔</b></p>
				<p>Firefox 2+ <b class="f-cgreen f-fs16">✔</b></p>
				<p>Safari 3.2+ <b class="f-cgreen f-fs16">✔</b></p>
				<p>Chrome 3+ <b class="f-cgreen f-fs16">✔</b></p>
				<p>Opera 10+ <b class="f-cgreen f-fs16">✔</b></p>
				<p>移动端 <b class="f-cgreen f-fs16">✔</b></p>
			</div>
			<h2 class="e-pt20 f-fs22 f-bb e-pb10" id="快速上手">快速上手</h2>
			<h3 class="e-mt20 f-fs16"><b class="f-corange">#</b> 下载</h3>
			<div class="e-mt15 f-lh22">
				<p>
					<a href="/nui/src/nui.js" class="f-corange f-tdu">未压缩版</a> 
					<a href="/nui/src/nui-min.js" class="f-corange f-tdu e-ml10">压缩版</a>
				</p>
			</div>
			<h3 class="e-mt20 f-fs16"><b class="f-corange">#</b> 引入</h3>
			<div class="e-mt15 f-lh22">
				<p>下载任意版本放到项目中并用script标签引入，Nui会被注册为一个全局变量。</p>
				<p>如果要使用Nui组件，在引入Nui之前需先引入jQuery，使用版本需1.8以及以上版本。</p>
			</div>
<script type="text/highlight" data-xml-options>
&lt;script src="/nui/assets/jquery.js"&gt;&lt;/script&gt;
&lt;script src="/nui/src/nui.js"&gt;&lt;/script&gt;
</script>
			<h3 class="e-mt20 f-fs16"><b class="f-corange">#</b> 编写模块</h3>
<script type="text/highlight" data-javascript-options>
// page.js
Nui.define(['./hello'], function(hello){
	var hello2 = this.require('./hello2');
	return ({
		init:function(){
			console.log(hello())
			console.log(hello2())
		}
	})
})

// hello.js hello2.js
Nui.define(function(){
    return function(){
        return 'Hello World!'
    }
})
</script>
			<h3 class="e-mt20 f-fs16"><b class="f-corange">#</b> 入口模块调用</h3>
<script type="text/highlight" data-xml-options>
&lt;script type="text/javascript"&gt;
Nui.load('./page', function(page){
	page.init()
})
&lt;/script&gt;
</script>
		</div>
	</div>
	
	
<div class="f-fl g-sidecol">
    <div class="side">
        <ul class="m-menu f-lh28">
            <li>
                <a class="f-fs16 s-crt" href="/nui/pages/">介绍</a>
                
                <ul>
                    <li>
                        <a href="#Nui是什么">Nui是什么</a>
                    </li>
                    <li>
                        <a href="#快速上手">快速上手</a>
                    </li>
                </ul>
                
            </li>
            <li>
                <a class="f-fs16" href="/nui/pages/doc.html">API文档</a>
                
            </li>
            <li>
                <a class="f-fs16" href="/nui/pages/util.html">实用工具</a>
                
            </li>
            <li>
                <a class="f-fs16" href="/nui/pages/template.html">模板引擎</a>
                
            </li>
            <li>
                <a class="f-fs16" href="/nui/pages/events.html">代理事件</a>
            </li>
            <li>
                <a class="f-fs16" href="/nui/pages/element.html">页面元素</a>
                
            </li>
            <li>
                <a class="f-fs16" href="/nui/pages/components/">交互组件</a>
                
            </li>
            <li>
                <a class="f-fs16" href="/nui/pages/pack.html">打包工具</a>
                
            </li>
        </ul>
    </div>
</div>


	</div>
	<!-- /content -->

	

    <script type="text/javascript" src="/nui/assets/script/jquery.min.js?v=4223d4c"></script>
<script type="text/javascript" src="/nui/dist/nui-load-min.js?v=94ae756"></script>
<script type="text/javascript" src="/nui/config.js?v=dc7a57a"></script>
    
    <script type="text/javascript">
	Nui.load("{script}/base-min", function(page){
        page.init()
    })
    </script>
    
    <script type="text/javascript">
    
    </script>
</body>
</html>